/*
 * @file     g_memcp.h
 * @brief    source file for setting memcp
 *
 * Change Logs:
 * Date            Author             Version        Notes
 * 2020-12-31      wanghongwei         V1.0.0         the first version
 */

#ifndef __G_MEMCP_H__
#define __G_MEMCP_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "g_1903.h"
#include "g_system.h"

/**
 * @brief  memcp initialize the structure
 */

typedef struct
{
    int SRC;
    uint16_t S_LEN;
    int DES;
    uint16_t D_LEN;
} MEMCP_InitTypeDef;
#define IS_MEMCP(mode) (mode == MDMA_MEMCP)

void MEMCP_Init(DMA_TypeDef *MEMCP, MEMCP_InitTypeDef *MEMCP_InitStruct);
void MEMCP_Cmd(DMA_TypeDef *MEMCP);
void MEMCP_ITConfig(DMA_TypeDef *MEMCP, G_FunctionalState INT_STATE);
void MEMCP_ClearITBit(DMA_TypeDef *MEMCP);
G_ITStatus MEMCP_GETITStatus(DMA_TypeDef *MEMCP);



#ifdef __cplusplus
}
#endif

#endif   /*__G_MEMCP_H__*/

/************************ (C) COPYRIGHT GKT *****END OF FILE****/
